.class Lrexsee/network/RexseeInstantAudio$3$1;
.super Ljava/lang/Thread;
.source "RexseeInstantAudio.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/network/RexseeInstantAudio$3;->run(Ljava/lang/String;J)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lrexsee/network/RexseeInstantAudio$3;

.field private final synthetic val$index:J

.field private final synthetic val$mSocket:Ljava/net/Socket;


# direct methods
.method constructor <init>(Lrexsee/network/RexseeInstantAudio$3;JLjava/net/Socket;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    iput-wide p2, p0, Lrexsee/network/RexseeInstantAudio$3$1;->val$index:J

    iput-object p4, p0, Lrexsee/network/RexseeInstantAudio$3$1;->val$mSocket:Ljava/net/Socket;

    .line 62
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lrexsee/network/RexseeInstantAudio$3$1;)Lrexsee/network/RexseeInstantAudio$3;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    return-object v0
.end method


# virtual methods
.method public run()V
    .locals 9

    .prologue
    .line 66
    :try_start_0
    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v0

    # getter for: Lrexsee/network/RexseeInstantAudio;->mAudioRecord:Landroid/media/AudioRecord;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio;->access$7(Lrexsee/network/RexseeInstantAudio;)Landroid/media/AudioRecord;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 67
    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v0

    # getter for: Lrexsee/network/RexseeInstantAudio;->mAudioRecord:Landroid/media/AudioRecord;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio;->access$7(Lrexsee/network/RexseeInstantAudio;)Landroid/media/AudioRecord;

    move-result-object v0

    invoke-virtual {v0}, Landroid/media/AudioRecord;->stop()V

    .line 68
    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v0

    # getter for: Lrexsee/network/RexseeInstantAudio;->mAudioRecord:Landroid/media/AudioRecord;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio;->access$7(Lrexsee/network/RexseeInstantAudio;)Landroid/media/AudioRecord;

    move-result-object v0

    invoke-virtual {v0}, Landroid/media/AudioRecord;->release()V

    .line 69
    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/network/RexseeInstantAudio;->access$8(Lrexsee/network/RexseeInstantAudio;Landroid/media/AudioRecord;)V

    .line 71
    :cond_0
    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v8

    new-instance v0, Landroid/media/AudioRecord;

    const/4 v1, 0x1

    const/16 v2, 0x5622

    const/4 v3, 0x2

    const/4 v4, 0x2

    iget-object v5, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v5}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v5

    # getter for: Lrexsee/network/RexseeInstantAudio;->mRecordBufferSizeInByte:I
    invoke-static {v5}, Lrexsee/network/RexseeInstantAudio;->access$9(Lrexsee/network/RexseeInstantAudio;)I

    move-result v5

    invoke-direct/range {v0 .. v5}, Landroid/media/AudioRecord;-><init>(IIIII)V

    invoke-static {v8, v0}, Lrexsee/network/RexseeInstantAudio;->access$8(Lrexsee/network/RexseeInstantAudio;Landroid/media/AudioRecord;)V

    .line 72
    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v0

    # getter for: Lrexsee/network/RexseeInstantAudio;->mAudioRecord:Landroid/media/AudioRecord;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio;->access$7(Lrexsee/network/RexseeInstantAudio;)Landroid/media/AudioRecord;

    move-result-object v0

    invoke-virtual {v0}, Landroid/media/AudioRecord;->startRecording()V

    .line 73
    iget-wide v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->val$index:J

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-eqz v0, :cond_2

    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v0

    # getter for: Lrexsee/network/RexseeInstantAudio;->mServerHandler:Landroid/os/Handler;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio;->access$10(Lrexsee/network/RexseeInstantAudio;)Landroid/os/Handler;

    move-result-object v0

    move-object v7, v0

    .line 74
    .local v7, "mHandler":Landroid/os/Handler;
    :goto_0
    new-instance v0, Lrexsee/network/RexseeInstantAudio$3$1$1;

    iget-object v1, p0, Lrexsee/network/RexseeInstantAudio$3$1;->val$mSocket:Ljava/net/Socket;

    invoke-direct {v0, p0, v1, v7}, Lrexsee/network/RexseeInstantAudio$3$1$1;-><init>(Lrexsee/network/RexseeInstantAudio$3$1;Ljava/net/Socket;Landroid/os/Handler;)V

    .line 90
    const-wide/16 v1, 0x14

    .line 74
    invoke-virtual {v7, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 106
    .end local v7    # "mHandler":Landroid/os/Handler;
    :cond_1
    :goto_1
    return-void

    .line 73
    :cond_2
    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v0

    # getter for: Lrexsee/network/RexseeInstantAudio;->mClientHandler:Landroid/os/Handler;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio;->access$11(Lrexsee/network/RexseeInstantAudio;)Landroid/os/Handler;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    move-object v7, v0

    goto :goto_0

    .line 103
    :catch_0
    move-exception v0

    move-object v6, v0

    .line 104
    .local v6, "e":Ljava/lang/Exception;
    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v0

    # getter for: Lrexsee/network/RexseeInstantAudio;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio;->access$0(Lrexsee/network/RexseeInstantAudio;)Lrexsee/core/browser/Browser;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v0

    # getter for: Lrexsee/network/RexseeInstantAudio;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v0}, Lrexsee/network/RexseeInstantAudio;->access$0(Lrexsee/network/RexseeInstantAudio;)Lrexsee/core/browser/Browser;

    move-result-object v0

    iget-object v1, p0, Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v1}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v1

    invoke-virtual {v1}, Lrexsee/network/RexseeInstantAudio;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_1
.end method
